package com.ks.orderZk.connter;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

/**
 * @Author：Administrator
 * @Date：2022/3/9/0009 21:48
 * @Versiion：1.0s
 */
@RestController
public class ConsumerOrderController {

    private static final String INVOKE_URL = "http://cloud-provider-payments8004";

    @Resource
    private RestTemplate restTemplate;

    @RequestMapping(value = "/consumerZk", method = RequestMethod.GET)
    public String order() {
        return restTemplate.getForObject(INVOKE_URL + "/payment/zk", String.class);
    }
}
